Cities aren’t doomed to repeat the bad old days